<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<body>
<ol class="page-navigator" th:fragment="pageNav(pageInfo, prevText, nextText, prefix)">
    <li><a th:href="@{/}" th:text="首页"></a></li>

    <th:block th:if="${pageInfo.hasPreviousPage}">
        <li class="prev"><a th:href="@{'/'+${prefix}+'/'+${pageInfo.prePage}}" th:text="${prevText}"></a></li>
    </th:block>


    <th:block th:each="navIndex :${ pageInfo.navigatepageNums}">
        <li th:class="${pageInfo.pageNum==navIndex}?'current':''"><a th:href="@{'/page/'+${navIndex}}"
                                                                     th:text="${navIndex}"></a></li>
    </th:block>


    <th:block th:if="${pageInfo.hasNextPage}">
        <li class="next"><a th:href="@{'/'+${prefix}+'/'+${pageInfo.nextPage}}" th:text="${nextText}"></a></li>
    </th:block>

    <li><a th:href="@{'/'+${prefix}+'/'+${pageInfo.pages}}" th:text="末页"></a></li>

    <li><span th:text="'第'+${pageInfo.pageNum}+'页/共'+${pageInfo.pages}+'页'"></span></li>

</ol>

<ol class="page-navigator" th:fragment="pageNav2(pageInfo, prevText, nextText, prefix)">
    <li><a th:href="@{'/'+${prefix}+'/1'}" th:text="首页"></a></li>

    <th:block th:if="${pageInfo.hasPreviousPage}">
        <li class="prev"><a th:href="@{'/'+${prefix}+'/'+${pageInfo.prePage}}" th:text="${prevText}"></a></li>
    </th:block>


    <th:block th:each="navIndex :${ pageInfo.navigatepageNums}">
        <li th:class="${pageInfo.pageNum==navIndex}?'current':''"><a th:href="@{'/'+${prefix}+'/'+${navIndex}}"
                                                                     th:text="${navIndex}"></a></li>
    </th:block>


    <th:block th:if="${pageInfo.hasNextPage}">
        <li class="next"><a th:href="@{'/'+${prefix}+'/'+${pageInfo.nextPage}}" th:text="${nextText}"></a></li>
    </th:block>

    <li><a th:href="@{'/'+${prefix}+'/'+${pageInfo.pages}}" th:text="末页"></a></li>

    <li><span th:text="'第'+${pageInfo.pageNum}+'页/共'+${pageInfo.pages}+'页'"></span></li>

</ol>

<div th:fragment="pageAdminNav(pageInfo)">
    <div class="clearfix">
        <ul class="pagination m-b-5 pull-right">
            <li th:if="${pageInfo.hasPreviousPage}">
                <a th:href="@{page=${pageInfo.prePage}}" aria-label="Previous">
                    <i class="fa fa-angle-left"></i>&nbsp;上一页
                </a>
            </li>

            <th:block th:each="nav : ${pageInfo.navigatepageNums}">
                <li th:class="${nav==pageInfo.pageNum}?'active':''"><a th:href="@{'?page='+${nav}}" th:text="${nav}"></a>
                </li>
            </th:block>

            <th:block th:if="${pageInfo.hasNextPage}">
                <li>
                    <a th:href="@{'?page='+${pageInfo.nextPage}}" aria-label="Next">
                        下一页&nbsp;<i class="fa fa-angle-right"></i>
                    </a>
                </li>
            </th:block>

            <li><span th:text="'共'+${pageInfo.pages}+'页'"></span></li>
        </ul>
    </div>
</div>


<div th:fragment="pageAdminNav2(pageInfo,uploadBo)">
    <div class="clearfix">
        <ul class="pagination m-b-5 pull-right">
            <li th:if="${pageInfo.hasPreviousPage}">
                <a th:href="@{'?page='+ ${pageInfo.prePage} +
                        '&amp;subPath='+${uploadBo.subPath}+
                        '&amp;ftype='+${uploadBo.ftype}+
                        '&amp;keyword='+${uploadBo.keyword}+
                        '&amp;delFlag='+${uploadBo.delFlag}}" aria-label="Previous">
                    <i class="fa fa-angle-left"></i>&nbsp;上一页
                </a>
            </li>

            <th:block th:each="nav : ${pageInfo.navigatepageNums}">
                <li th:class="${nav==pageInfo.pageNum}?'active':''">
                    <a th:href="@{'?page='+${nav}+
                        '&amp;subPath='+${uploadBo.subPath}+
                        '&amp;ftype='+${uploadBo.ftype}+
                        '&amp;keyword='+${uploadBo.keyword}+
                        '&amp;delFlag='+${uploadBo.delFlag}}" th:text="${nav}"></a>
                </li>
            </th:block>

            <th:block th:if="${pageInfo.hasNextPage}">
                <li>
                    <a th:href="@{'?page='+${pageInfo.nextPage} +
                        '&amp;subPath='+${uploadBo.subPath}+
                        '&amp;ftype='+${uploadBo.ftype}+
                        '&amp;keyword='+${uploadBo.keyword}+
                        '&amp;delFlag='+${uploadBo.delFlag}}" aria-label="Next">
                        下一页&nbsp;<i class="fa fa-angle-right"></i>
                    </a>
                </li>
            </th:block>

            <li><span th:text="'共'+${pageInfo.pages}+'页'"></span></li>
        </ul>
    </div>
</div>

<div th:fragment="pageAdminNav3(pageInfo)">
    <div class="clearfix">
        <ul class="pagination m-b-5 pull-right">
            <li th:if="${pageInfo.hasPreviousPage}">
                <a th:href="@{'?page='+ ${pageInfo.prePage} +
                        '&amp;category='+${category}+
                        '&amp;state='+${state}+
                        '&amp;keyword='+${keyword}}" aria-label="Previous">
                    <i class="fa fa-angle-left"></i>&nbsp;上一页
                </a>
            </li>

            <th:block th:each="nav : ${pageInfo.navigatepageNums}">
                <li th:class="${nav==pageInfo.pageNum}?'active':''">
                    <a th:href="@{'?page='+${nav}+
                        '&amp;category='+${category}+
                        '&amp;state='+${state}+
                        '&amp;keyword='+${keyword}}" th:text="${nav}"></a>
                </li>
            </th:block>

            <th:block th:if="${pageInfo.hasNextPage}">
                <li>
                    <a th:href="@{'?page='+${pageInfo.nextPage} +
                        '&amp;category='+${category}+
                        '&amp;state='+${state}+
                        '&amp;keyword='+${keyword}}" aria-label="Next">
                        下一页&nbsp;<i class="fa fa-angle-right"></i>
                    </a>
                </li>
            </th:block>

            <li><span th:text="'共'+${pageInfo.pages}+'页'"></span></li>
        </ul>
    </div>
</div>

</body>
</html>